package action;

import object.HeaderPage;
import org.openqa.selenium.WebDriver;
import org.springframework.stereotype.Service;

/**
 * Created by 000001159 on 2016/12/20.
 */

public class HeaderActions {

    HeaderPage headerPage;
    public void clickName(WebDriver driver){
        headerPage=new HeaderPage(driver);
        if(headerPage!=null){
            headerPage.username.click();
        }
    }

    public void clickLogOff(WebDriver driver){
        headerPage=new HeaderPage(driver);
        if(headerPage!=null){
            headerPage.logOff.click();
        }
    }

    public void clickUserPwd(WebDriver driver){
        headerPage=new HeaderPage(driver);
        if(headerPage!=null){
            headerPage.changePassword.click();
        }
    }

}
